diff options
Diffstat (limited to 'www-2/src/pages/[...id].astro')
| -rw-r--r-- | www-2/src/pages/[...id].astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www-2/src/pages/[...id].astro b/www-2/src/pages/[...id].astro index b3c5b40..bbaed88 100644 --- a/www-2/src/pages/[...id].astro +++ b/www-2/src/pages/[...id].astro @@ -4,8 +4,8 @@ import { getCollection, render } from "astro:content"; import ArticlePage from "../layouts/ArticlePage.astro"; export async function getStaticPaths() { - const posts = await getCollection("blogs"); - return posts.map((post) => ({ + const articles = await getCollection("articles"); + return articles.map((post) => ({ params: { id: post.id }, props: { post }, })); |
